<?php 

$this->pageTitle = $page->title; 
$this->metaKeywords = $page->meta_keyword;
$this->metaDescription = $page->meta_description;
$this->addMetaProperty('fb:app_id',Yii::app()->params['fbAppId']);
$baseUrl= Yii::app()->baseUrl;
$this->canonical = $baseUrl.$page->slug; // canonical URLs should always be absolute




?>

<div class="row">
    <div class="twelve columns">
        <h1 class="title stressborder">Our Work</h1>
        <hr>
    </div>
</div>
<div class="row">
    <div class="twelve columns">
        <section id="options" class="clearfix">
            <!-- #filter -->
            <ul id="filter">
                <li id="all" class="portofoliobutton current"><a href="#" data-filter="*">Show all</a></li>
                <?php foreach ($featureTags as $tag) : ?>
                    <li><a href="#" data-filter=".<?php echo $tag->name; ?>" title="View all items filed under <?php echo ucfirst($tag->name); ?>"><?php echo ucfirst($tag->name); ?></a>
                    </li>

                <?php endforeach; ?>
            </ul>
        </section>
    </div>
</div>
<br/>
<div class="row">
    <ul id="ulportfolio" class="isotope">
        <?php foreach ($portfolios as $portfolio) : ?>
            <!--BEGIN .item -->

            <li class="three columns portfoliofour item houses <?php echo str_replace(",", " ", $portfolio->assigntags) //implode(" ", $tagfilter)  ?> ">
                <div class="filterable-portfolio">
                    <!-- .post-details -->
                    <h5 class="portfoliotitle"><?php echo CHtml::link(strlen($portfolio->name) > 23 ? substr($portfolio->name, 0, 20) . ".." : $portfolio->name ,$this->createUrl($portfolio->getSlug()));?></h5>
                    <p style="min-height: 60px;">

                        <?php echo $portfolio->short_description ?>
                    </p>
                    <!-- /.post-details -->
                    <a href="<?php echo $this->createUrl($portfolio->getSlug()) ?>">
                        <div class="rollfour">
                            <div class="innerp">
                                <p>
                                    <img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/zoom_icon.png" alt="">
                                </p>
                            </div>
                        </div>
                    </a>
                    <?php

                    echo CHtml::image($portfolio->imageWebPath(),$portfolio->name,array('class'=>"attachment-portfolio4-thumb"));
                    ?>
                </div>
            </li>
            <!--END .item -->
        <?php endforeach; ?>
    </ul>
</div>
<br>
<br>